package xing.design.pattern.behavioral.strategy;

import xing.design.pattern.behavioral.command.sample1.Person;
import xing.design.pattern.behavioral.strategy.behavior.GoHome;

/**
 * @author xing
 * @date 2023/2/7 22:44:02
 */
public class GoHomePerson extends Person {
    public GoHomePerson(GoHome goHomeMethod) {
        super(goHomeMethod);
    }

    public void goHome() {
        super.doSomething();
    }

    public void setGoHomeMethod(GoHome goHomeMethod) {
        super.setDoSomething(goHomeMethod);
    }
}
